// 使用 vendor 方式创建并挂载应用，交由插件自动注册
const common_vendor = require('./common/vendor.js');

const RootApp = {
  globalData: {},
  onLaunch(options) {
    console.log('App Launch', options);
  },
  onShow(options) {
    console.log('App Show', options);
  },
  onHide() {
    console.log('App Hide');
  }
};

// 创建并挂载应用；插件会在 mount 后自动调用 wx.createApp(instance)
const app = common_vendor.createSSRApp(RootApp);
app.mount();
